import request from '@/utils/request'

//新增项目
export function project_create(para) {
	return request({
		url: '/project/create',
		method: 'post',
		data: para
	})
}

//编辑项目
export function project_update(data) {
	return request({
		url: '/project/update',
		method: 'post',
		data
	})
}

//删除项目
export function project_delete(para) {
	return request({
		url: '/project/delete',
		method: 'post',
		data: {
			ids: para
		}
	})
}

//项目列表
export function project_list(para) {
	return request({
		url: '/project/list',
		method: 'post',
		data: para
	})
}

//项目详情
export function project_view(id) {
	return request({
		url: '/project/view',
		method: 'get',
		params: {
			id
		}
	})
}

//项目服务开关
export function project_service(params) {
	return request({
		url: '/project/service',
		method: 'get',
		params
	})
}